<?php
namespace app\common\model;
use think\model\concern\SoftDelete;

class WorkRecordCloud extends TyModel {

    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;

    //是否加密
    public function getIsPasswordNameAttr($value,$data){
        $status = [0 => '否', 1 => '是'];
        return $status[$data['is_password']];
    }
}